/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
/**
 * @description ApInvoiceMemoHeadMServiceImpl.java
 * @author dongbin
 * @version 
 * @copyright
 */

package com.erp.finance.apeco.memo.service.spring;

import java.util.List;
import java.util.Map;

import org.redragon.framework.hibernate.model.Pages;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.erp.finance.apeco.memo.dao.ApInvoiceMemoHeadMDao;
import com.erp.finance.apeco.memo.dao.model.ApInvoiceMemoHeadM;
import com.erp.finance.apeco.memo.service.ApInvoiceMemoHeadMService;

/**
 * @description
 * @date 2020年11月2日
 * @author dongbin
 * 
 */
@Service
@Transactional(rollbackFor=Exception.class)
public class ApInvoiceMemoHeadMServiceImpl implements ApInvoiceMemoHeadMService {
    
    //注入Dao
    @Autowired
    private ApInvoiceMemoHeadMDao apInvoiceMemoHeadMDao;

    @Override
    public void insertDataObject(ApInvoiceMemoHeadM obj) {
        this.apInvoiceMemoHeadMDao.insertDataObject(obj);
    }

    @Override
    public void updateDataObject(ApInvoiceMemoHeadM obj) {
        this.apInvoiceMemoHeadMDao.updateDataObject(obj);
    }

    @Override
    public void insertOrUpdateDataObject(ApInvoiceMemoHeadM obj) {
        this.apInvoiceMemoHeadMDao.insertOrUpdateDataObject(obj);
    }

    @Override
    public void deleteDataObject(ApInvoiceMemoHeadM obj) {
        this.apInvoiceMemoHeadMDao.deleteDataObject(obj);
    }

    @Override
    public List<ApInvoiceMemoHeadM> getDataObjects() {
        return this.apInvoiceMemoHeadMDao.getDataObjects();
    }

    @Override
    public ApInvoiceMemoHeadM getDataObject(int id) {
        return this.apInvoiceMemoHeadMDao.getDataObject(id);
    }

    @Override
    public ApInvoiceMemoHeadM getDataObject(String code) {
        return this.apInvoiceMemoHeadMDao.getDataObject(code);
    }

    @Override
    public List<ApInvoiceMemoHeadM> getDataObjects(ApInvoiceMemoHeadM paramObj) {
        return this.apInvoiceMemoHeadMDao.getDataObjects(paramObj);
    }

    @Override
    public List<ApInvoiceMemoHeadM> getDataObjects(Pages pages) {
        return this.apInvoiceMemoHeadMDao.getDataObjects(pages);
    }

    @Override
    public List<ApInvoiceMemoHeadM> getDataObjects(Pages pages, ApInvoiceMemoHeadM paramObj) {
        return this.apInvoiceMemoHeadMDao.getDataObjects(pages, paramObj);
    }

    @Override
    public List<Map<String, Object>> getDataObjectsArray(Pages pages, ApInvoiceMemoHeadM paramObj) {
        return this.apInvoiceMemoHeadMDao.getDataObjectsArray(pages, paramObj);
    }

    @Override
    public List<ApInvoiceMemoHeadM> getDataObjectsForDataAuth(String dataAuthSQL, Pages pages,
            ApInvoiceMemoHeadM paramObj) {
        return this.apInvoiceMemoHeadMDao.getDataObjectsForDataAuth(dataAuthSQL, pages, paramObj);
    }

    @Override
    public ApInvoiceMemoHeadM getDataObject(String code, Integer version) {
        return this.apInvoiceMemoHeadMDao.getDataObject(code, version);
    }

}
